package com.example.projuct.demos.week.week3.chapter2_2;

/**
 * @author jll
 * @createTime 2025/4/27
 * @description 测试学科类
 * @version: 1.0
 */
public class SubjectTest {

    public static void main(String[] args) {
        Subject subject = new Subject("数学", "001", 100);
        System.out.println(subject.info());
        System.out.println("========================================");
        Student student = new Student("001", "张三", "男", 18, subject);
        System.out.println(student.info());
        System.out.println(student.info("数学", "001", 100));
        System.out.println(student.info(subject));
    }
}
